package com.example.aop.controller;

import com.example.aop.service.HelloService;
import com.example.aop.service.impl.HelloServiceImpl;
import com.example.aop.service.impl.TestServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: qilongxin
 * @date: 2021/8/13 14:11
 */
@RestController
@Slf4j
public class HelloController {

    @Autowired
    HelloService helloService;

    @GetMapping("/log")
    @ResponseBody
    public String logTest(String name) {
        return helloService.sayHello(name);
    }
}
